# Used by ifup(8) and ifdown(8). See the interfaces(5) manpage or
# /usr/share/doc/ifupdown/examples for more information.

# The loopback network interface
auto lo eth1 eth0
iface lo inet loopback

# This is a list of hotpluggable network interfaces.
# They will be activated automatically by the hotplug subsystem.
mapping hotplug
        script grep
        map eth0

# The primary network interface
iface eth0 inet static
        address 192.168.21.11
        netmask 255.255.255.0
        network 192.168.21.0
        broadcast 192.168.20.255
        #gateway 192.168.21.10
        # dns-* options are implemented by the resolvconf package, if installed
#       dns-nameservers 192.168.20.1
#       up route add -net 192.168.20.0 netmask 255.255.255.0 gw 192.168.21.10
        up  echo 1 > /proc/sys/net/ipv4/ip_forward

iface eth1 inet static
        address 192.168.22.11
        netmask 255.255.255.0
        network 192.168.22.0
        broadcast 192.168.22.255

#iface eth2 inet static
#        address 10.0.0.1
#        netmask 255.255.255.0
#        network 10.0.0.0
#        broadcast 10.0.0.255
#       up iptables -t nat -F
#       up iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE


